var assert = require('assert');
var should = require('should');
var util = require('util');
var zlib = require('zlib');
var _ = require('lodash');
var wishtreeConf = require('../../app/config/wishtreeConf');
var dataApi = require('../../app/libs/dataApi');

suite('wishtreeConf', function () {
    suite('getDiamondConsumptionConf', function () {
        test('根据次数获取对应的钻石消耗', function () {
            wishtreeConf.getDiamondConsumptionConf(1).should.equal(2);
        });
    });

    suite('getOnlyReward', function () {
        test('根据类型获取对应的only_conf (增益过)', function () {
            assert.equal(wishtreeConf.getOnlyReward(10, 2, 3) != null, true);
            //console.log(wishtreeConf.getOnlyReward(10, 2, 3));
        });
    });

    suite('getFreeRewardlist', function () {
        test('根据等级获取产出的奖励only_list （没增益）', function () {
            assert.equal(wishtreeConf.getFreeRewardlist(10, 2) != null, true);
            //console.log(wishtreeConf.getFreeRewardlist(10, 2));
        });
    });
});
